package com.paypalpay.service.impl;

import com.paypalpay.entity.common.DevicePackageCoverPicture;
import com.paypalpay.entity.common.DevicePackageMarketingStrategy;
import com.paypalpay.entity.common.InternationalPayPackage;
import com.paypalpay.entity.common.PartnerProductPackage;
import com.paypalpay.mapper.InternationalPayPackageMapper;
import com.paypalpay.service.InternationalPayPackageService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class InternationalPayPackageServiceImpl implements InternationalPayPackageService {
    @Resource
    public InternationalPayPackageMapper internationalPayPackageMapper;

    @Override
    public int findPackageExistOrNot(String packageCode, String partnerCode) {
        return internationalPayPackageMapper.findPackageExistOrNot(packageCode, partnerCode);
    }


    @Override
    public void storagePackage(PartnerProductPackage productPackage) {
        // TODO Auto-generated method stub
        internationalPayPackageMapper.storagePackage(productPackage);
    }

    @Override
    public List<InternationalPayPackage> queryPackages(String partnerCode,String deviceId) {

        return internationalPayPackageMapper.queryPackages(partnerCode,deviceId);
    }
//    @Override
//    public List<InternationalPayPackage> queryPackages() {
//
//        return internationalPayPackageMapper.queryPackages();
//    }
@Override
public List<DevicePackageCoverPicture> queryPictureInfo(String partnerCode,String packageCode) {
    return internationalPayPackageMapper.queryPictureInfo(partnerCode,packageCode);
}
//    @Override
//    public List<DevicePackageCoverPicture> queryPictureInfo(String coverCountryCode) {
//        return internationalPayPackageMapper.queryPictureInfo(coverCountryCode);
//    }
    @Override
    public List<DevicePackageMarketingStrategy> queryDeviceStrategy(String packageCode,String partnerCode) {
        return internationalPayPackageMapper.queryDeviceStrategy(packageCode,partnerCode);
    }

//    @Override
//    public List<DevicePackageMarketingStrategy> queryDeviceStrategy(String packageCode) {
//        return internationalPayPackageMapper.queryDeviceStrategy(packageCode);
//    }

    @Override
    public List<InternationalPayPackage> queryPackagesByMcc(String mccRequest, String partnerCode) {
        return internationalPayPackageMapper.queryPackagesByMcc(mccRequest,partnerCode);
    }
//    @Override
//    public List<InternationalPayPackage> queryPackagesByMcc(String mccRequest) {
//        return internationalPayPackageMapper.queryPackagesByMcc(mccRequest);
//    }

    @Override
    public String getPackageNameBypackageCode(String packageCode,String partnerCode) {
        return internationalPayPackageMapper.getPackageNameBypackageCode(packageCode,partnerCode);
    }

    @Override
    public void storageRefuelingPackage(PartnerProductPackage payPackage) {
        internationalPayPackageMapper.storageRefuelingPackage(payPackage);
    }

    @Override
    public String queryContinent(String mccs) {

        return internationalPayPackageMapper.queryContinent(mccs);
    }

    @Override
    public String queryCountry(String mccs) {

        return internationalPayPackageMapper.queryCountry(mccs);
    }

    @Override
    public String queryPartnerNameBypartnerCode(String partnerCode) {
        return internationalPayPackageMapper.queryPartnerNameBypartnerCode(partnerCode);
    }

    @Override
    public int findPictureExistOrNot(String packageCode, String partnerCode) {
        return internationalPayPackageMapper.findPictureExistOrNot(packageCode, partnerCode);
    }

    @Override
    public void storagePicture(DevicePackageCoverPicture picture) {
        internationalPayPackageMapper.storagePicture(picture);
    }

    @Override
    public String queryPackageName(String packageName, String partnerCode) {
        return internationalPayPackageMapper.queryPackageName(packageName,partnerCode);
    }

    @Override
    public String getPackageTypeByCode(String packageCode, String partnerCode) {
        return internationalPayPackageMapper.getPackageTypeByCode(packageCode,partnerCode);
    }

    @Override
    public String getPackageAmountBypackageCode(String packageCode, String partnerCode) {
        return internationalPayPackageMapper.getPackageAmountBypackageCode(packageCode,partnerCode);
    }

    @Override
    public void bak_storagePackage(InternationalPayPackage payPackage) {
        internationalPayPackageMapper.bak_storagePackage(payPackage);
    }

    @Override
    public void bak_storageRefuelingPackage(InternationalPayPackage payPackage) {
        internationalPayPackageMapper.bak_storageRefuelingPackage(payPackage);
    }


}
